package com.coastline.fruit.manage.exception;

import com.coastline.fruit.common.exception.CoastlineFruitErrorInfo;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @author Coastline
 * @date 2025/1/26 22:29
 */
@Getter
@ToString
@AllArgsConstructor
public enum ManageErrorInfo implements CoastlineFruitErrorInfo {
    PARAM_LENGTH_TOO_LONG("31001004", "The parameter length is too long"),
    MANDATORY_PARAMS_IS_EMPTY("31001003", "Required parameters are missing  or empty"),
    LOGIN_ACCOUNT_NAME_ALREADY_EXISTS("31001002", "Login account name already exists"),
    OPERATOR_NAME_ALREADY_EXISTS("31001001", "Operator name already exists"),
    DATABASE_OPERATION_ERROR("31001000", "Database operation error");

    private final String errorCode;

    private final String errorMessage;
}
